import { remote } from "electron";
//#region 窗口标题栏控制按钮相关
const cls = document.querySelector("#header > div > div.close") as Element
cls.addEventListener('click', () => {
  window.close()
})
const max = document.querySelector("#header > div > div.max") as Element
max.addEventListener('click', () => {
  let win = remote.getCurrentWindow()
  if (win.isMaximized()) {
    win.restore()
  } else {
    win.maximize()
  }
})
const mini = document.querySelector("#header > div > div.mini") as Element
mini.addEventListener('click', () => {
  remote.getCurrentWindow().minimize()
})
//#endregion

